package me.zhengjie.modules.utils.chat;

import lombok.Data;

/**
 * {"id":"as-fjzujj2bcu","object":"chat.completion","created":1713337030,"result":"你好！请问你有什么需要我帮忙的吗？我会尽力为你提供有用的信息和帮助。如果你有任何问题或话题想要了解，随时都可以告诉我。","is_truncated":false,"need_clear_history":false,"finish_reason":"normal","usage":{"prompt_tokens":1,"completion_tokens":28,"total_tokens":29}}
 */
@Data
public class BaiDuResult {

    private String id;
    private String object;
    private Integer created;
    private String result;
    private Boolean isTruncated;
    private Boolean needClearHistory;
    private String finishReason;
    private UsageDTO usage;

    @Data
    public static class UsageDTO {
        private Integer promptTokens;
        private Integer completionTokens;
        private Integer totalTokens;
    }
}
